﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CIRDiagnoseDevice.DBManage;

namespace CIRDiagnoseDevice
{
    public partial class Form1 : Form
    {
        TestRecordManage man = new TestRecordManage();
        DbManage dbm = new DbManage();
        Statistics statistic = new Statistics();
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
           // man.ConnectionSQLSerDB();
            dbm.InsertData("北京", "北京动车", "北京南动车", "CRH5-018A", 1, "四级修", "北京", "北京通信", "北京无线", "北京南动车无线检测", "上海通信", "TWJX", "0182", "五级修");
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            statistic.ShowForm +=new FormDelegate(statistic_ShowForm);
        }

        void statistic_ShowForm(object sender)
        {
            new Form1().Show();
        }
    }
}
